package com.bwie.mapper;

import com.bwie.common.domainThree.Contact;
import com.bwie.common.domainThree.Customer;
import com.bwie.common.domainThree.Follow;
import com.bwie.common.domainThree.Type;
import com.bwie.common.domainThree.request.CustomerRequest;
import com.bwie.common.domainThree.request.FollowRequest;
import com.bwie.common.domainThree.response.ContactReqponse;
import com.bwie.common.domainThree.response.CustomerResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: CustomerMapper
 * @Description: TODO
 * @version: v1.８.0
 * @author: 张雨乐
 */
@Mapper
public interface CustomerMapper {
    List<CustomerResponse> list(CustomerRequest customerRequest);

    List<ContactReqponse> contactList(@Param("customerId") String customerId);

    List<Type> typeList(String id);

    void contactAdd(Contact contact);

    void CustomerAdd(Customer contact);

    Contact getContact(@Param("id") String id);

    List<Follow> followList(@Param("id") String id);

    void followAdd(FollowRequest followRequest);

    void customerUp(FollowRequest followRequest);

    void followDel(@Param("list") List<Integer> list);

    void contactDel(@Param("list") List<Integer> list);

    void customerDel(@Param("list") List<Integer> list);
}
